package com.sistemagestion.Entities;

import java.io.Serializable;

import com.sistemagestion.Utils.NotMapping;
import com.sistemagestion.Utils.PrimaryKey;


public class RazonSocial implements Serializable{

	@NotMapping(isNotMapping = 1)
	private static final long serialVersionUID = -3806213117245807841L;

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((IdRazonSocial == null) ? 0 : IdRazonSocial.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RazonSocial other = (RazonSocial) obj;
		if (IdRazonSocial == null) {
			if (other.IdRazonSocial != null)
				return false;
		} else if (!IdRazonSocial.equals(other.IdRazonSocial))
			return false;
		return true;
	}

	@PrimaryKey (isPrimaryKey = 1)
	private Integer IdRazonSocial;
	
	private String Nombre;

	public Integer getIdRazonSocial() {
		return IdRazonSocial;
	}

	public void setIdRazonSocial(Integer idRazonSocial) {
		IdRazonSocial = idRazonSocial;
	}

	public String getNombre() {
		return Nombre;
	}

	public void setNombre(String nombre) {
		Nombre = nombre;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return Nombre;
	}
}
